#include "../src/cyclelist.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, const char **argv)
{
    linknode_t *list = Cyclelist_create();
    Cyclelist_insert_tail(list, 10);
    Cyclelist_insert_tail(list, 20);
    Cyclelist_insert_tail(list, 30);
    Cyclelist_insert_tail(list, 40);
    Cyclelist_insert_tail(list, 50);
    Cyclelist_insert_tail(list, 60);
    printf("尾插入法：");
    Cyclelist_show(list);

    list = Cyclelist_cut_head(list);
    printf("砍头函数：");
    Cyclelist_show_nohead(list);

    printf("证明测试：");
    Cyclelist_show_Prove(list, 12);

    return 0;
}
